package java3_16.Pet;
//狗类  子类
public class Dog extends Pet{
    public Dog(String name,String type,String weight){
        super.setName(name);
        super.setType(type);
        super.setWeight(weight);
    }
    public void catchMouse(){
        System.out.println("狗抓住了老鼠!");
    }
}
